package at.spengergasse.web.aspecte;


import org.apache.log4j.Logger;

public aspect Logging
{
protected final Logger log = Logger.getLogger(getClass());
	
	
	pointcut log() : execution(* *.doGet(..)) || execution(* *.doPost(..));
	
	before() : log() {
		log.debug(thisJoinPointStaticPart.getSignature()+"started processing ");	
	}
	
	after() returning() : log() {		
		log.debug(thisJoinPointStaticPart.getSignature()+"end processing ");
	}
	
	pointcut logLoadMap() : call(* *.loadMapPlz());
	
	before() : logLoadMap() {
		
		log.debug(" PlzMap wird geladen" );		
	}
	
	after() returning() : logLoadMap() {		
		log.debug("PlzMap wurde erfolgreich geladen");
	}

}
